import Vue from "vue";
import VueRouter from "vue-router";
import TodoView from "@/views/TodoView";
import Products from "@/views/Dogs";
import VuexCar from "@/views/VuexCar";
import Counter from "@/components/vuex-demo/Counter";
import SearchView from "@/components/vuex-demo/search/SearchView";
Vue.use(VueRouter);

export default new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/index",
      name: "index",

      component: Products
    },
    {
      path: "/home",
      name: "home",

      component: Products
    },
    {
      path: "/shop",
      name: "shop",

      component: VuexCar
    },
    {
      path: "/counter",
      name: "counter",

      component: Counter
    },
    {
      path: "/todo",
      name: "todo",

      component: TodoView
    },

    {
      path: "/search",
      name: "searc",

      component: SearchView
    }

  ]
});
